package org.lynn.service;

import org.lynn.entity.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author gy
 * @date 2017/12/27.
 */
@Service
public class LoginService {

    @Autowired
    private UserService userService;
    @Autowired
    private ContentService contentService;

    public Customer login(int id){

        contentService.check();

        Customer customer = userService.getUserById(id);

        return customer;

    }


}
